package com.it.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author xukang
 * @date 2021-08-16 18:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "recommend_user")
public class RecommendUser implements Serializable {
    private static final long serialVersionUID = -4296017160071130962L;
    // @Id
    /**
     * //主键id
     */
    private ObjectId id;
    /**
     * //推荐的用户id
     */
    @Indexed
    private Long userId;
    /**
     * //用户id
     */
    private Long toUserId;
    /**
     * //推荐得分
     */
    @Indexed
    private Double score;
    /**
     * //日期
     */
    private String date;
}